package com.third.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Date;

/**
 * @author 唐博文
 * @version 2023.1.2
 * &#064;date  2023/10/18 10:53 星期三
 */

//出库表
@Data
public class OutboundOrder {
    @TableId(value = "order_id",type = IdType.AUTO)
    private Integer orderId;//订单编号
    private String orderType; //订单类型
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date orderDate;//出库日期
    private int customerId;//客户编号
    private int brandId;//品牌编号
    @TableField(exist = false)
    private String specification;//规格
    private int quantity;//数量
    private double price;//价格
    private String permission;//是否审批通过
    @TableField(exist = false)
    private Brand brand;     //品牌
    @TableField(exist = false)
    private Users user;     //客户
}
